﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Configuration;
using System.Data;
using System.Data.SqlClient;
using DAL;
using BLL;

public partial class Plublic_TermCurrentAccount : System.Web.UI.Page
{
    String StrConn = WebConfigurationManager.ConnectionStrings["conn"].ConnectionString.ToString();
    TermCurrentHandler objTermCurrentHandler = new TermCurrentHandler();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DataBindGridView();
        }
    }

    protected void DataBindGridView()
    {
        int UserId = Convert.ToInt32(Session["UserId"]);

        DataTable dt = objTermCurrentHandler.GetTermCurrentTable(UserId, StrConn);

        GridView1.DataSource = dt;
        GridView1.DataBind();

    }

}